package jsyf.oa.entity.apply;

import com.alibaba.fastjson.JSONObject;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

/**
 * @author: 徐波
 * @creat: 2017/11/30 0030 19:16
 * description:
 */
@Entity
@Table(name = "T_APL_MONEY_COPIER", schema = "oa", catalog = "")
public class MoneyCopierEntity  extends BaseEntity {
    private String fkMoneyId;
    private String copyPersonId;
    private String copyPersonName;

    @Basic
    @Column(name = "FK_MONEY_ID")
    public String getFkMoneyId() {
        return fkMoneyId;
    }

    public void setFkMoneyId(String fkMoneyId) {
        this.fkMoneyId = fkMoneyId;
    }

    @Basic
    @Column(name = "COPY_PERSON_ID")
    public String getCopyPersonId() {
        return copyPersonId;
    }

    public void setCopyPersonId(String copyPersonId) {
        this.copyPersonId = copyPersonId;
    }

    @Basic
    @Column(name = "COPY_PERSON_NAME")
    public String getCopyPersonName() {
        return copyPersonName;
    }

    public void setCopyPersonName(String copyPersonName) {
        this.copyPersonName = copyPersonName;
    }


    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", id);
        obj.put("FK_MONEY_ID", fkMoneyId);
        obj.put("COPY_PERSON_ID", copyPersonId);
        obj.put("COPY_PERSON_NAME", copyPersonName);
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_APL_MONEY_COPIER";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("FK_MONEY_ID", "fkMoneyId");
        obj.put("COPY_PERSON_ID", "copyPersonId");
        obj.put("COPY_PERSON_NAME", "copyPersonName");
        return obj;
    }
}
